package com.gzhryc.shared_device.oem.code.agent.dao.db;

import java.io.Serializable;
import java.util.Date;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Join;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;

@Table(name = "agent_type_menu_rel")
public class AgentTypeMenuRel implements Serializable {

    private static final long serialVersionUID = 1L;

	@PrimaryKey
    @Column(name = "type_id")
	protected Long typeId;

    @PrimaryKey
    @Column(name = "menu_id")
    protected Long menuId;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    @Join(fromField = "menu_id")
    protected AgentMenu menu;

	public Long getTypeId() {
		return typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public AgentMenu getMenu() {
		return menu;
	}

	public void setMenu(AgentMenu menu) {
		this.menu = menu;
	}
    
}
